package com.ye.personnel.api.flow;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: yeubo
 * @Date: 2024/1/2 19:17
 */
@Data
public class FlowListVo {

    @ApiModelProperty("流程id")
    private String flowId;

    @ApiModelProperty("流程类型")
    private Integer flowType;
    @ApiModelProperty("流程类型中文")
    private String flowTypeName;

    @ApiModelProperty("发起单位id")
    private String startDepartmentId;
    @ApiModelProperty("发起单位")
    private String startDepartmentName;

    @ApiModelProperty(hidden = true)
    private String currentDepartmentId;
    @ApiModelProperty(hidden = true)
    private Integer currentUserType;

    @ApiModelProperty("当前审批人")
    private String currentDepartmentName;

    @ApiModelProperty(hidden = true)
    private String superDepartmentId;

    @ApiModelProperty("历史审批人")
    private String superDepartmentName;

    @ApiModelProperty("人员姓名列表")
    private List<String> personnelNameList;

    @ApiModelProperty("当前登录者是否有审核权限 0 无审核权限 1 有审核权限")
    private Integer checkAllow=0;

    @ApiModelProperty("当前登录者是否有编辑权限 0 无编辑权限 1 有编辑权限")
    private Integer editAllow=0;

    @ApiModelProperty("当前流程所处位置 0 发起单位 依次累加")
    private Integer flowPos;

    @ApiModelProperty("流程是否完结 0 否 1 是")
    private Integer overStatus;

    @ApiModelProperty(hidden = true)
    private Integer currentCheckType;

    @ApiModelProperty("最近操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH::mm:ss")
    private Date lastCheckTime;

    @ApiModelProperty("发起时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH::mm:ss")
    private Date startFlowTime;
}
